package com.amigo.online.provider.sync.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;


@Mapper
@Component
public interface GlobalMapper {

    @Update("update video_tbl set watermark_video = #{waterMarkUrl} where id = #{id}")
    void updateWaterMarkVideo(@Param("waterMarkUrl") String waterMarkUrl, @Param("id") long id);

    @Select("select account from user_tbl where id = #{id}")
    String getUserAccountById(@Param("id") long id);
}
